# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=email2trac
pkgver=2.12.2
pkgrel=1
pkgdesc="Utilities for converting emails to trac tickets"
url="https://oss.trac.surfsara.nl/email2trac"
arch="" # Requires trac which is in unmaintained because it requires python2
license="GPL-2.0-or-later"
depends="trac"
makedepends="python3"
source="https://ftp.sara.nl/pub/outgoing/email2trac-$pkgver.tar.gz"
options="!check suid" # no testsuite

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--with-trac_user=tracd \
		PYTHON=python3
	make
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="15b14d436f28092f0a9c3ecc0be0197d54085710b6cd651505168e14bf3c002ce4e218bdf2725a09c7caa2a1f72c83b24daf193eddc52658c8510e25c65a7c1b  email2trac-2.12.2.tar.gz"
